/*
 * Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
 *
 * https://www.mall4j.com/
 *
 * 未经允许，不可做商业用途！
 *
 * 版权所有，侵权必究！
 */
package com.yami.shop.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yami.shop.bean.model.PurchaseOrder;
import com.yami.shop.common.util.PageParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author YXF
 * @date 2021-09-08 10:42:01
 */
public interface PurchaseOrderMapper extends BaseMapper<PurchaseOrder> {

    /**
     * 分页
     *
     * @param page
     * @param purchaseOrder
     * @return
     */
    IPage<PurchaseOrder> pagePurchaseOrder(PageParam<PurchaseOrder> page, @Param("purchaseOrder") PurchaseOrder purchaseOrder);

    /**
     * 采购订单信息
     *
     * @param purchaseOrderId
     * @return
     */
    PurchaseOrder info(@Param("purchaseOrderId") Long purchaseOrderId);

    /**
     * 获取指定的采购订单信息列表
     *
     * @param purchaseOrderNumbers
     * @return
     */
    List<PurchaseOrder> listInfoByPurchaseOrderNumbers(@Param("purchaseOrderNumbers") List<String> purchaseOrderNumbers);

    /**
     * 批量更新状态
     *
     * @param purchaseOrderList
     */
    void updateBatchStatus(@Param("purchaseOrderList") List<PurchaseOrder> purchaseOrderList);

}
